package com.base.core;

/**
 * 服务（业务）异常如“ 账号或密码错误 ”，该异常只做INFO级别的日志记录 @see WebMvcConfigurer
 */
public class ServiceException extends RuntimeException {

    private String message;

    private Object data;

    public ServiceException(String message) {
        this(message, null);
    }

    public ServiceException(String message, Object data) {
        this.message = message;
        this.data = data;
    }
}
